package com.lk.template.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
import java.io.Serializable;

/**
 * 用户表(TUser)实体类
 *
 * @author makejava
 * @since 2024-05-31 10:50:29
 */
@Data
@Accessors(chain = true)
@TableName(value = "t_user",schema = "t_user")
public class UserPo implements Serializable {

    private static final long serialVersionUID = 944881840446529440L;
    /**
     * ID
     */
    @Schema(description = "ID")
    @TableId
    private Integer id;
    /**
     * 角色ID
     */
    @Schema(description = "角色ID")
    @TableField(value = "roleId")
    private Integer roleId;
    /**
     * 账号
     */
    @Schema(description = "账号")
    @TableField(value = "account")
    private String account;
    /**
     * 密码
     */
    @Schema(description = "密码")
    @TableField(value = "password")
    private String password;
    /**
     * 用户名
     */
    @Schema(description = "用户名")
    @TableField(value = "userName")
    private String userName;
    /**
     * 电话
     */
    @Schema(description = "电话")
    @TableField(value = "phone")
    private String phone;
    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    @TableField(value = "email")
    private String email;
    /**
     * 头像
     */
    @Schema(description = "头像")
    @TableField(value = "headImage")
    private String headImage;
    /**
     * 是否第一次登录
     */
    @Schema(description = "是否第一次登录")
    @TableField(value = "restPassword")
    private Boolean restPassword;
    /**
     * 是否禁止登录
     */
    @Schema(description = "是否禁止登录")
    @TableField(value = "whetherBlock")
    private Boolean whetherBlock;
    /**
     * 是否删除
     */
    @Schema(description = "是否删除")
    @TableField(value = "whetherDelete")
    @TableLogic
    private Boolean whetherDelete;

    @Schema(description = "创建时间")
    @TableField(value = "createTime")
    private Date createTime;

    @Schema(description = "修改时间")
    @TableField(value = "updateTime")
    private Date updateTime;

}

